{% extends 'base.html' %}
{% load humanize %}
{% block page-content %}
{% include 'nav_cat_bar.html' %}

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>查询结果</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="fa fa-wrench"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-user">
                            <li><a href="#">未启用 1</a>
                            </li>
                            <li><a href="#">未启用 2</a>
                            </li>
                        </ul>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    {% if error %}
                        <div class="alert alert-warning text-center">{{ error }}</div>
                    {% endif %}
                    <table class="table table-hover table-bordered">
                            <thead>
                                    <tr>
                                            <th class="text-center">省份</th>
                                            <th class="text-center">城市</th>
                                            <th class="text-center">地区</th>
                                            <th class="text-center">IP</th>
                                            <th class="text-center">运营商</th>
                                            <th class="text-center">国家</th>
                                    </tr>
                            </thead>
                            <tbody>
                                            <tr class="text-center">
                                                    {% for num in data.values %}
                                                            <td>{{num}}</td>
                                                    {% endfor %}

                                            </tr>
                            </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
{%endblock%}